package com.kgc.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * carousel
 * @author 
 */
@Data
@ApiModel(value = "轮播图展示实体",description = "对应数据库carouse表")
public class CarouselDTO implements Serializable {
    /**
     * 自增主键
     */
    @ApiModelProperty(value = "轮播图序号")
    private Integer id;

    /**
     * 背景色
     */
    @ApiModelProperty(value = "防止轮播图片长度不够，显示两边白框颜色")
    private String backgroundColor;

    /**
     * 商品分类
     */
    @ApiModelProperty(value = "通过点击图片，跳转对应的地址")
    private String skipUrl;

    /**
     * 展示顺序
     */
    @ApiModelProperty(value = "轮播图展示的顺序")
    private Integer picSort;

    /**
     * 展示 0是 1否
     */
    @ApiModelProperty(value = "轮播图是否展示")
    private Integer isShow;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "图片加入时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy_MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "图片更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy_MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 图片的地址
     */
    @ApiModelProperty(value = "图片的地址")
    private String picUrl;

    private static final long serialVersionUID = 1L;
}